
imgArr1=["https://s2.mogucdn.com/p2/170315/40592144_5a62k5aecifecf3iaddc0eb2l384b_44x44.png","https://s2.mogucdn.com/p2/170315/40592144_0b8i11l822b0adfjaaifl11ig86f1_44x44.png","https://s2.mogucdn.com/p2/170315/40592144_67ja8jj102089fj6djai0l6khb0h5_44x44.png","https://s2.mogucdn.com/p2/170315/40592144_35ikl8db8a4lfa3f29k8k4b9k3ji2_44x44.png"]
imgArr2 = ["https://s2.mogucdn.com/p2/170315/40592144_6ii829464gk34ai4hkdf14cdea05d_44x44.png","https://s2.mogucdn.com/p2/170315/40592144_6c127ldgd4ccebg2e8i42kedgdd69_44x44.png","https://s2.mogucdn.com/p2/170315/40592144_4l6kkh68522ha1je77i1gfa4b82j2_44x44.png","https://s2.mogucdn.com/p2/170315/40592144_4aba4gee9khhe66df2723085cg75h_44x44.png"]

$(".footer a").each(function(index,ele){
  $(ele).on("click",function(){
    if(index!=2){
    $(".footer a img").each(function(index2,ele2){
      $(ele2).attr("src",imgArr1[index2])
    })
    $(".footer a p").each(function(index2,ele2){
      $(ele2).css('color','#939393')
    })
      $(this.children[0]).attr("src",imgArr2[index]);
      $(this.children[1]).css('color','#fb5485')
    }
  })
});


// console.log(window.location.hash);

// if(window.location.hash=='#/home' || window.location.hash==''){
//   $("#home").trigger("click");
// }
// if(window.location.hash.substring(0,10)=='#/catetory'){
//   $("#catetory").trigger("click")
// }
// if(window.location.hash=='#/mine' ){
//   $("#mine").trigger("click")
// }

var m=5;
function mt(){
  m--;
  $('.span1').text(m)
  if(m==0){
    $(".moTai").css("display","none")
  }
}
setInterval(mt,1000)

  $(".span2").on("click",function(){
      $(".moTai").css("display","none")
  })
